package com.ruoyi.gaokao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gaokao.mapper.GkRegistrationAuthorityMapper;
import com.ruoyi.gaokao.domain.GkRegistrationAuthority;
import com.ruoyi.gaokao.service.IGkRegistrationAuthorityService;

/**
 * 户籍登记机关信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2025-07-07
 */
@Service
public class GkRegistrationAuthorityServiceImpl implements IGkRegistrationAuthorityService 
{
    @Autowired
    private GkRegistrationAuthorityMapper gkRegistrationAuthorityMapper;

    /**
     * 查询户籍登记机关信息
     * 
     * @param name 户籍登记机关信息主键
     * @return 户籍登记机关信息
     */
    @Override
    public GkRegistrationAuthority selectGkRegistrationAuthorityByName(String name)
    {
        return gkRegistrationAuthorityMapper.selectGkRegistrationAuthorityByName(name);
    }

    //selectGkRegistrationAuthorityAll
    @Override
    public List<GkRegistrationAuthority> selectGkRegistrationAuthorityAll()
    {
        return gkRegistrationAuthorityMapper.selectGkRegistrationAuthorityAll();
    }

    /**
     * 查询户籍登记机关信息列表
     * 
     * @param gkRegistrationAuthority 户籍登记机关信息
     * @return 户籍登记机关信息
     */
    @Override
    public List<GkRegistrationAuthority> selectGkRegistrationAuthorityList(GkRegistrationAuthority gkRegistrationAuthority)
    {
        return gkRegistrationAuthorityMapper.selectGkRegistrationAuthorityList(gkRegistrationAuthority);
    }

    /**
     * 新增户籍登记机关信息
     * 
     * @param gkRegistrationAuthority 户籍登记机关信息
     * @return 结果
     */
    @Override
    public int insertGkRegistrationAuthority(GkRegistrationAuthority gkRegistrationAuthority)
    {
        return gkRegistrationAuthorityMapper.insertGkRegistrationAuthority(gkRegistrationAuthority);
    }

    /**
     * 修改户籍登记机关信息
     * 
     * @param gkRegistrationAuthority 户籍登记机关信息
     * @return 结果
     */
    @Override
    public int updateGkRegistrationAuthority(GkRegistrationAuthority gkRegistrationAuthority)
    {
        return gkRegistrationAuthorityMapper.updateGkRegistrationAuthority(gkRegistrationAuthority);
    }

    /**
     * 批量删除户籍登记机关信息
     * 
     * @param names 需要删除的户籍登记机关信息主键
     * @return 结果
     */
    @Override
    public int deleteGkRegistrationAuthorityByNames(String[] names)
    {
        return gkRegistrationAuthorityMapper.deleteGkRegistrationAuthorityByNames(names);
    }

    /**
     * 删除户籍登记机关信息信息
     * 
     * @param name 户籍登记机关信息主键
     * @return 结果
     */
    @Override
    public int deleteGkRegistrationAuthorityByName(String name)
    {
        return gkRegistrationAuthorityMapper.deleteGkRegistrationAuthorityByName(name);
    }
}
